<?php

class m130630_145635_update_users extends CDbMigration
{
	public function up(){
		$this->addColumn("users", "code", "varchar(8) not null"); //ma nap coin
		$this->addColumn("users", "status", "boolean not null default false");
		$this->addColumn("users", "tran_cert", "varchar(128)"); // transaction certificate
		return true;
	}

	public function down()
	{
		$this->dropColumn("users", "code");
		$this->dropColumn("users", "status");
		$this->dropColumn("users", "tran_cert");
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}